package com.itany.corejava.day17;

public class Test2 {

    public static void main(String[] args) {

        UserService userService= (UserService) ObjectFactory.getObject("userServiceImpl");

        userService.regist();

        userService.login();



        ProductService productService= (ProductService) ObjectFactory.getObject("productService");

        productService.list();

    }
}
